<script setup>
import { provide, ref } from 'vue'
import ParentCom from "./components/ParentCom.vue";

const money = 100
const car = ref('黄包车')
const changeCar = (newCar)=>{
  car.value = newCar
}

provide('money', money)
provide('car', car)
provide('changeCar', changeCar)
</script>

<template>
  <div style="border: 10px solid #ccc; padding: 50px; width: 600px">
    App组件
    <ParentCom />
  </div>
</template>

<style scoped></style>
